<?php echo $this->Form->create("Ingredient", array("class" => "form")); ?>

<div id="select2">
    <div id="filter">
        <h3>FILTER</h3>
        <p> Wie viele Zutaten dürfen maximal fehlen? </p>
        <?php echo $this->Form->input("Ingredient.filtro", array('label' => '')); ?></div>
    <div id="super">
        <?php echo $this->Ajax->submit('ERGEBNISSE ANZEIGEN', array('url' => array('controller' => 'Ingredients', 'action' => "view"), 'update' => 'vista', 'indicator' => 'loading', 'class' => "buttons")); ?></br>
        <?php echo $this->Html->link("NEUE SUCHE STARTEN", array('controller' => 'Ingredients', 'action' => "search", 'class' => "buttons")) ?>
    </div>
    <div id="vista"></div>
</div>
<div id="select">
    <h3> RESTEVERWERTER </h3>
    <p> Bitte wähle deine vorhandenen Zutaten aus: </p> 
    <table border="0">
        <tbody>
            <?php foreach ($ingredientes as $ingrediente): ?>
                <tr>
                    <td><?php echo $this->Form->checkbox("", array('value' => $ingrediente['Ingredient']['id'], 'name' => "Ingredientes[]", 'hiddenField' => false)); ?></td>
                    <td><?php echo $ingrediente['Ingredient']['name'] ?></td>
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>
<?php echo $this->Form->end(); ?>
